package com.bbh.data.some.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by roman_000 on 2016/5/24.
 */
@RestController
@RequestMapping("/some")
public class SomeController {
    @Value("${system.appCode:}")
    private  String  appCode;
    @Value("${system.message:默认1}")
    private  String   message;
    @RequestMapping("/msg")
    public  String  getMessage(){
        return  "appCode2;"+appCode+"msg:"+message;
    }
}
